package com.ytkj.digitalConstruction.entity.assets;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;

/**
 * 车辆
 * 
 * @author iking
 *
 */
public class Vehicle {

	/**
	 * 车辆id
	 */
	private Integer vehicleId;

	/**
	 * 车牌号
	 */
	private String plateNumber;

	/**
	 * 车辆名称
	 */
	@NotBlank(message = "车辆名称不能为空")
	private String vehicleName;

	/**
	 * 部门id
	 */
	@NotNull(message = "项目组id不能为null")
	@Min(value = 1, message = "项目自id不能小于1")
	private Integer projectId;

	/**
	 * 绑定的设备
	 */
	private Integer bindDevice;

	/**
	 * 车辆状态，0-不可用、1-可用
	 */
	private Integer status;

	/**
	 * 车辆描述
	 */
	@Size(max = 50, message = "描述不能超过50个字符！")
	private String vehicleDesc;

	public Integer getVehicleId() {
		return vehicleId;
	}

	public void setVehicleId(Integer vehicleId) {
		this.vehicleId = vehicleId;
	}

	public String getPlateNumber() {
		return plateNumber;
	}

	public void setPlateNumber(String plateNumber) {
		this.plateNumber = plateNumber == null ? null : plateNumber.trim();
	}

	public String getVehicleName() {
		return vehicleName;
	}

	public void setVehicleName(String vehicleName) {
		this.vehicleName = vehicleName == null ? null : vehicleName.trim();
	}

	public Integer getProjectId() {
		return projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	public Integer getBindDevice() {
		return bindDevice;
	}

	public void setBindDevice(Integer bindDevice) {
		this.bindDevice = bindDevice;
	}

	public String getVehicleDesc() {
		return vehicleDesc;
	}

	public void setVehicleDesc(String vehicleDesc) {
		this.vehicleDesc = vehicleDesc == null ? null : vehicleDesc.trim();
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}